import bisect

a = [3, 6, 3, 4, 2, 3, 4, 5]
b = [i ** i for i in a]
print(b)
bisect.insort_left(a, 1, key=lambda x: x ** x)

print(a)
